package com.shelpe.services.scheduler.repository;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.shelpe.services.scheduler.po.Adgroups;

public interface AdgroupsRepository extends PagingAndSortingRepository<Adgroups, Long>{
	
	public List<Adgroups> findByUserId(Long userId);
	
	public Page<Adgroups> findByUserId(Long userId, Pageable pager);
	
	public List<Adgroups> findByCampaignId(Long campaignId);

}
